package com.legal.app.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.legal.common.annotation.Excel;
import com.legal.common.core.domain.BaseEntity;

/**
 * 消息对象 z_message
 * 
 * @author ALe
 * @date 2025-05-30
 */
@TableName("z_message")
public class Message extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息ID */
    private Long id;

    /** 发送者ID */
    @Excel(name = "发送者ID")
    private Long senderId;

    /** 接收者ID */
    @Excel(name = "接收者ID")
    private Long receiverId;

    /** 关联订单ID */
    @Excel(name = "关联订单ID")
    private Long orderId;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String content;

    /** 消息类型(1=文本,2=图片,3=语音) */
    @Excel(name = "消息类型(1=文本,2=图片,3=语音)")
    private Long messageType;

    /** 消息状态(0=已删除,1=正常,2=已读) */
    @Excel(name = "消息状态(0=已删除,1=正常,2=已读)")
    private Long status;

    /** 是否系统消息(0=否,1=是) */
    @Excel(name = "是否系统消息(0=否,1=是)")
    private Long isSystem;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setSenderId(Long senderId) 
    {
        this.senderId = senderId;
    }

    public Long getSenderId() 
    {
        return senderId;
    }

    public void setReceiverId(Long receiverId) 
    {
        this.receiverId = receiverId;
    }

    public Long getReceiverId() 
    {
        return receiverId;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setMessageType(Long messageType) 
    {
        this.messageType = messageType;
    }

    public Long getMessageType() 
    {
        return messageType;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setIsSystem(Long isSystem) 
    {
        this.isSystem = isSystem;
    }

    public Long getIsSystem() 
    {
        return isSystem;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("senderId", getSenderId())
            .append("receiverId", getReceiverId())
            .append("orderId", getOrderId())
            .append("content", getContent())
            .append("messageType", getMessageType())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("isSystem", getIsSystem())
            .toString();
    }
}
